home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / blt1.000 / blt1 / blt-1.7-for-STk / test-blt < prev    next >
Encoding:
Text File  |  1995-02-12  |  581 b   |  36 lines

  1. #!/bin/sh
  2. #
  3. # A simple shell script to test stk and BLT  without installing it
  4. #
  5.  
  6. if [ -x ./stk-bin -o -f blt.so ] 
  7. then 
  8.   STKDIR=..
  9. else
  10.   if [ -x ../stk-bin -o -f ../blt.so ]
  11.   then
  12.     STKDIR=../..
  13.   fi
  14. fi
  15.  
  16. STK_LIBRARY=$STKDIR/Lib 
  17. STK_LOAD_PATH=$STKDIR/STklos:$STKDIR/STklos/Tk:$STKDIR/STklos/Tk/Composite:$STK_LIBRARY:$STKDIR/Extensions:..
  18.  
  19. export STK_LIBRARY STK_LOAD_PATH
  20.  
  21. if [ -x ./stk-bin ]
  22. then 
  23.   binary=./stk-bin
  24. else
  25.   if [ -x ../stk-bin ]
  26.   then 
  27.     binary=../stk-bin 
  28.   else
  29.     binary=$STKDIR/Src/stk-bin
  30.   fi
  31. fi
  32. echo "Interpreter used $binary"
  33. exec $binary $*
  34.  
  35.  
  36.